#include<iostream>
#include<algorithm>

using namespace std;

int n;
int res1=0,res2=0;
int sum1=0,sum2=0;

int main()
{
	cin>>n;
	
	while(n--){
		int a,b,c;
		cin>>a>>b>>c;
		if(a==1){
			res1+=b;
			sum1+=c; 
		}
		else{
			res2+=b;
			sum2+=c;
		}
	}
	
	if(res1>=sum1) printf("LIVE\n");
	else printf("DEAD\n");
	if(res2>=sum2) printf("LIVE\n");
	else printf("DEAD\n");
	
	return 0;
}
